<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}

    <!-- 商品属性名称 -->
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('PPtitle')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[title]" type="text" value="">
        </div>
    </div>

    <!-- 商品属性值 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="c-name">{:__('PPvalue')}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" data-name="row[value]" data-template="customtpl">
                <dd>
                    <p>{:__('PPvalue')}</p >
                </dd>
                <dd>
                    <a href="javascript:;" class="btn btn-sm btn-success btn-append" href=" "><i class="fa fa-plus"></i>追加</a >
                </dd>
                <textarea class="form-control hide" cols="20" name="row[value]" rows="2"></textarea>
            </dl>
        </div>
    </div>
    
    <script id="customtpl" type="text/html">
        <dd class="form-inline">
            <input type="text" name="<%=name%>[<%=index%>][value]" class="form-control" value="<%=value%>"
                   placeholder="请输入属性值"/>
            <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
            <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
        </dd>
    </script>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>